home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / net / anos_2_9i.lha / AmigaNOS / TCPIP / Spool / Help / Main.Route (.png) < prev    next >
ANSI Art File  |  1992-11-04  |  3KB  |  640x1232  |  4-bit (3 colors)
Labels: text | screenshot | font | black and white
OCR: Help File route With no arguments, route displays the IP routing table. route add <dest_hostid>[/bits]Idefault <iface> [ <gateway_hostid> [<metric>]] This command adds an entry to the routing table. It requires at least two more arguments, the hostid of the target destination and the name of the interface to which its packets should be sent . If the destination is not local, the gateway's hostid should also be specified. (If the interface is a point-to-point link, then gateway_hostid may be omitted even if the target is non-local because this field is only used to determine the gateway's link level address, if any. If the destination is directly reachable, gateway_hostid is also unnecessary since the destination address is used to determine the interface link address) . The optional /bits suffix to the destination host id specifies how many leading bits in the host id are to be considered signi- ficant in the routing comparisons. If not specified, 32 bits (i.e ., full significance) is assumed. With this option, a single routing table entry may refer to many hosts all sharing a common bit string prefix in their IP addresses. For example, ARPA Class A, B and C networks would use suffixes of /8, /16 and /24 respec- tively; the command route add 44/8 $10 44.64.0.2 causes any IP addresses beginning with "44" in the first 8 bits to be routed to 44.64.0.2; the remaining 24 bits are "don't- cares". Jhen an IP address to be routed matches more than one entry in the routing table, the entry with largest bits parameter (i.e ., the "best" match) is used. This allows individual hosts or blocks of hosts to be exceptions to a more general rule for a larger block of hosts. The special destination default is used to route datagrams to addresses not matched by any other entries in the routing table; it is equivalent to specifying a /bits suffix of /0 to any desti- nation hostid. Care must be taken with default entries since two nodes with default entries pointing at each other will route packets to unknown addresses back and forth in a loop until their time-to-live (TTL) fields expire. (Routing loops for specific addresses can also be created, but this is less likely to occur accidentally). Here are some examples of the route command : # Route datagrams to IP address 44.0.0.3 to SLIP line #0. # No gateway is needed because SLIP is point-to point. route add 44.0.0.3 $10 # Route all default traffic to the gateway on the local Ethernet # with IP address 44.0.0.1 route add default eco 44.0.0.1 # The station with IP address 44.0.0.10 is on the local AX.25 channel route add 44.0.0.10 ax0 route addprivate <dest hostid>[/bits]Idefault <iface> [ <gateway hostid> [<metric>]] This command is identical to route add except that it also marks the RIP updates. new entry as private; it will never be included in outgoing route drop <dest hostid> route drop deletes an entry from the table. If a packet arrives for the deleted address and a default route is in effect, it will be used .